package com.sin.java.tool.httpman;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

import com.sin.java.tool.httpman.model.Pack;
import com.sin.java.tool.httpman.model.PamInfo;

public class HttpMain {
	public static void main(String[] args) {
		// MainForm form = new MainForm();
		//
		// form.setLocationRelativeTo(null);
		// form.setVisible(true);

		

		try {
			String filename = "doc/接口测试工具协议.txt";
			FileInputStream fi = new FileInputStream(filename);
			InputStreamReader is = new InputStreamReader(fi, "utf-8");
			BufferedReader br = new BufferedReader(is);

//			Pack pack = new Pack("测试例子");
			
			String s = null;;
			List<String> lines = new ArrayList<String>();
			while((s=br.readLine())!=null){
				System.out.println(s);
				lines.add(s);
			}
			
			br.close();
			is.close();
			fi.close();

			System.out.println(new Pack(lines, 0, 0));
		}
		catch (Exception e) {
			e.printStackTrace();
		}

	}
}
